<?php

use Illuminate\Support\Facades\Schedule;



// Игровые такты
// Schedule::call(static function () {
//    \App\Models\Pet::metabolism();
// })->everyMinute();



// Системные вызовы




///
///
/// @TODO: Почистить это дермьо
///
///

//use Illuminate\Foundation\Inspiring;
//use Illuminate\Support\Facades\Artisan;

// Artisan::command('inspire', function () {
//     $this->comment(Inspiring::quote());
// })->purpose('Display an inspiring quote')->hourly();

Schedule::command('test:send-notification')->everyTwoHours()->runInBackground();

//try {
//    Schedule::command('test:send-notification')->everySecond()->runInBackground();
//
////    $this->info('Notification sent successfully!');
//    return true;
//} catch (\Exception $e) {
////    $this->error('Failed to send notification: ' . $e->getMessage());
//    report($e->getMessage());
//    return false;
//}
